login_informaion=[]

def xieru(zhuce_zhanghao,zhuce_mima):
	a=open('zhanghaomima.txt',mode='a')
	a.write("%s|%s\n"%(zhuce_zhanghao,zhuce_mima))
	a.close()

# panduan_informaion = [
# {'zhanghao':'chenhangyu','mima':'123456'},
# {'zhanghao':'maifengyuan','mima':'123'}
# ]

def panduan(zhanghao,mima):
	with open('zhanghaomima.txt','r') as b:
		for i in b: 
			a=i.split("|")
			login_informaion.append(a)
	for item in login_informaion:
		if int(item[0]) == zhanghao and int(item[1]) == mima:
			return "true"

	# for d in panduan_informaion1:
	# 	if d["zhanghao"] == zhanghao and d["mima"] == mima:
	# 		return "turn"



